package com.muhan.ssm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author muhan
 */
@Controller
@RequestMapping("/sysUser")
public class SysUserController {
	
	@GetMapping("/login")
	public String login(Model model){
		System.out.println("登录成功");
		
		model.addAttribute("username", "张三疯");
		return "main";
	}
	
	@GetMapping("/logout")
	public String logout(){
		System.out.println("退出登录");
		return "redirect:/login.html";
	}
}	
